<?php
    class product_view_controller extends controllerBase
    {
        public function process()
        {
            $oProduct = $this->database->getObject('SELECT * FROM product where product_id = '.$this->iId);
            if(!$oProduct)
            {
                return $this->url->getLink('product', true, 'Product not found.');
            }
            
            $this->setTitle($oProduct->title);
            $this->set(array('oProduct' => $oProduct));
        }
    }
?>
